﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FSAPI
{
    public class InspectionCallBackDisp:InspectionCallBackDisp_
    {
        public delegate void voidSendResult(List<bool> rst);
        public voidSendResult SendResultEvent=null;
        public override void SendResult(List<bool> rst, Ice.Current current__)
        {
            if (SendResultEvent != null)
            {
                SendResultEvent(rst);
            }
            //throw new NotImplementedException();
        }
        public delegate bool voidBackMsg(string str);
        public voidBackMsg voidBackMsgEvent = null;
        public override bool BackMsg(string str, Ice.Current current__)
        {
            if (voidBackMsgEvent != null)
            {
                voidBackMsgEvent(str);
                return true;
            }
            return false;
            //throw new NotImplementedException();
        }
        public delegate void voidSendPic(byte[] pic);
        public voidSendPic voidSendPicEvent = null;
        public override void SendPic(byte[] pic, Ice.Current current__)
        {
            if (voidSendPicEvent != null)
            {
                voidSendPicEvent(pic);
            }
            //throw new NotImplementedException();
        }
        public delegate void voidSendInfo(ImageType ity);
        public voidSendInfo voidSendInfoEvent = null;
        public override void SendInfo(ImageType ity, Ice.Current current__)
        {
            if (voidSendInfoEvent != null)
            {
                voidSendInfoEvent(ity);
            }
            //throw new NotImplementedException();
        }
    }
}
